<#macro header title prev="default" home="default">
    <header class="<#if home == "none">no-home</#if> <#if prev == "none">no-prev</#if> header" id="header">
        <#if prev != "none">
            <#if prev != "default">
                <a href="${prev}" class="prev"></a>
            <#elseif request.getHeader("Referer")??
            && (request.getHeader("Referer")?contains("/jobapply/jobOk") || request.getHeader("Referer")?contains("/favorite/favoritesuccess") || request.getHeader("Referer")?replace("#","") == request.getRequestURL().toString()?replace("#",""))>
                <a href="http://${configs['domains.mobile']}/job/index" class="prev"></a>
            <#else>
                <a href="#" class="prev"></a>
            </#if>
        </#if>
        <#if home != "none">
            <#if home != "default">
                <#assign homeUrl = home/>
            <#else>
                <#assign homeUrl = "http://${configs['domains.mobile']}/job/index"/>
            </#if>
            <a href="${homeUrl}" class="home"></a>
        </#if>
        <span class="title">${title}</span>
    </header>
</#macro>